/* 酒店扩展页面样式 - 基于vite.config.js中的postcss-pxtorem配置 (rootValue: 75) */
*{
  margin: auto 0;
  padding: 0;
}
.container {
  width: 100%;
  max-width: 750px;  /* 对应10rem，根据rootValue: 75 */
  margin: 0 auto;
/* 适配移动端边距 */
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f7fa;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch; /* 增强移动端滚动体验 */
}

/* 页面标题样式 */
.pageHeader {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8e8e8;
}

.pageTitle {
  font-size: 28px;
  color: #333;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.hotelList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hotelCard {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.hotelCard:active {
  transform: scale(0.98); /* 移动端点击反馈 */
  background-color: #fafafa;
}

.hotelInfo {
  padding: 18px; /* 增加内边距 */
}

.guestInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px; /* 增加间距 */
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px; /* 增加边距 */
}

.label {
  color: #666;
  font-size: 20px; /* 增大标签文字 */
  margin-right: 5px;
}

.value {
  color: #333;
  font-weight: 500;
  font-size: 20px; /* 增大值文字 */
}

.roomInfo {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.roomNumber {
  font-size: 20px; /* 增大房间号文字 */
  color: #333;
  text-align: right;
  font-weight: 500;
}

.bookingInfo {
  display: flex;
  flex-direction: column;
  gap: 14px; /* 增加间距 */
  margin-bottom: 18px; /* 增加间距 */
  padding: 8px 0; /* 增加内边距 */
}

.bookingDetail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px; /* 增大文字 */
  line-height: 1.5;
}

.price {
  font-size: 22px; /* 增大价格文字 */
  font-weight: 600;
  color: #ff5500;
}

.statusBadge {
  background-color: #e6f7ff;
  color: #1677ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
}

.availabilityInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px; /* 增加内边距 */
  border-top: 1px solid #f0f0f0;
}

.daysLeft {
  font-size: 20px; /* 增大剩余天数文字 */
  color: #ff0000;
  font-weight: 500;
}

.bookButton {
  background-color: #1677ff; /* 蓝色按钮 */
  color: #fff;
  border: none;
  border-radius: 22px; /* 稍微增大圆角 */
  padding: 12px 28px; /* 增大按钮尺寸 */
  font-size: 20px; /* 增大按钮文字 */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

.bookButton:active {
  transform: scale(0.95);
  background-color: #0e5ecf; /* 深一点的蓝色 */
}

.bookButton:disabled {
  background-color: #cccccc;
  color: #999999;
  cursor: not-allowed;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.loading p {
  font-size: 24px; /* 增大加载文字 */
  margin-top: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(22, 119, 255, 0.1);
  border-radius: 50%;
  border-top-color: #1677ff; /* 蓝色加载动画 */
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.emptyList {
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-size: 24px; /* 增大空列表文字 */
}

.errorMessage {
  text-align: center;
  padding: 40px 0;
  color: #ff3300;
  font-size: 24px; /* 增大错误信息文字 */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
}

/* 媒体查询 - 根据不同屏幕尺寸优化显示 */
@media screen and (max-width: 375px) {
  .container {
    padding: 10px;
  }
  
  .pageTitle {
    font-size: 24px;
  }
  
  .bookingInfo {
    gap: 10px;
  }
  
  .label, .value, .roomNumber, .bookingDetail {
    font-size: 18px; /* 小屏幕上适当减小字体 */
  }
  
  .price {
    font-size: 22px;
  }
  
  .daysLeft {
    font-size: 18px;
  }
  
  .bookButton {
    padding: 10px 20px;
    font-size: 18px;
  }
}

@media screen and (min-width: 768px) {
  .hotelCard {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .pageTitle {
    font-size: 32px;
  }
  
  .label, .value, .roomNumber, .bookingDetail {
    font-size: 22px;
  }
  
  .price {
    font-size: 26px;
  }
  
  .daysLeft {
    font-size: 22px;
  }
  
  .bookButton {
    font-size: 22px;
  }
}